package org.example;

import java.util.ArrayList;

/*
 * Main类
 */

public class Main {
    public static void main(String[] args) {

        /*
         * 为List分配空间
         */
        Supermarket.inventory = new ArrayList<>();

        /*
         * 初始化超市的商品
         */
        Product exampleOne = new Product("010001","白雪公主的苹果",5.00D,10);
        Supermarket.addProduct(exampleOne);
        Product exampleTwo = new Product("010002","金色的香蕉",3.00D,50);
        Supermarket.addProduct(exampleTwo);
        Product exampleThree = new Product("010003","魔女的眼球",500.00D,100);
        Supermarket.addProduct(exampleThree);
        Product exampleFour = new Product("010004","蕴藏魔力的项链",1500.0D,20);
        Supermarket.addProduct(exampleFour);
        Product exampleFive = new Product("010005","伊阿宋的金羊毛",96666.00D,1);
        Supermarket.addProduct(exampleFive);

        /*
         * 进入主程序
         */
        Supermarket.supermarketMainMenu();

    }
}